from django.urls import path

from . import views

urlpatterns = [
    path("userinfo/", views.UserProfileView.as_view()),
    path("login/", views.LoginView.as_view()),
    path("blogs/all/<str:mode>", views.BlogsView.as_view()),
    path("blogs/add/", views.BlogView.as_view()),
    path("blogs/<int:pk>/", views.BlogView.as_view()),
    path("blogviews/<int:pk>/", views.updateBlogviewView.as_view()),
    path("tags/", views.TagView.as_view()),
    path("tags/<str:name>/", views.TagToBlogsView.as_view()),
    path("music/<str:name>/", views.MusicView.as_view()),
    path("musics/", views.MusicsView.as_view()),
    path("url/", views.OssUrlView.as_view()),
    path("userviews/", views.updateUserviewView.as_view()),
]
